package com.atguigu.spzx.order;

import com.atguigu.spzx.feign.cart.anno.EnableAddTokenRequestInterceptor;
import com.atguigu.spzx.service.annotation.EnableUserLoginAuthInterceptor;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * ClassName: OrderApplication
 *
 * Package: com.atguigu.spzx.order
 * Description:
 *
 * @Author 刘强
 * @Create 2024/7/17 17:25
 * @Version 1.0
 */
@SpringBootApplication
@EnableAddTokenRequestInterceptor  //开启添加token的请求拦截器，给feignClient添加token
@EnableFeignClients(basePackages = "com.atguigu.spzx.feign")
@EnableUserLoginAuthInterceptor   // 开启认证上下文拦截器
public class OrderApplication {
    public static void main(String[] args) {
        System.out.println("我是devDemo分支的功能 -> 订单服务启动.....");
        SpringApplication.run(OrderApplication.class,args);
    }
}
